package com.telit.common.util;

import com.telit.common.service.GaodeService;
import org.springframework.stereotype.Component;


/**
 * @Auther zhouyu
 * @description 高德地图工具类
 **/
@Component
public class GaodeUtils {

    private static GaodeService gaodeService;

    public GaodeUtils(GaodeService gaodeService){
        GaodeUtils.gaodeService=gaodeService;
    }


    /**
     * 根据经纬度查询详细地点
     */
    public static String queryAddressByLaAndLo(String longitude,String latitude){
        return gaodeService.queryAddressByLaAndLo(longitude,latitude);
    }

}
